package cn.t.xsmart.daggerstudy;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import javax.inject.Inject;

import cn.t.xsmart.daggerstudy.utils.PrintUtils;
import dagger.internal.DaggerCollections;

public class MainActivity extends AppCompatActivity {

    @Inject
    PrintUtils mPrintUtils;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mPrintUtils = DaggerMainActivityInjectComponent.builder().build().printUtils();
        mPrintUtils.sayHello(getClass().getSimpleName(), "Hello Hejingzhou");
    }
}
